//drawtext(name,flav,if item)

with oGUI{
drawtext = true
//draw stats (WIP)
//name
textname = argument0//item2name(other.item)
//draw flavour text
textflav = argument1


pushdown = 4

ifitem = argument2
textdmg[] = 0

if argument2{
//go through dmg array and push textflav's y down with a var

pushdown = array_height_2d(other.dmg)+1


textdmg[0] = string(other.dmg[0,1])+" "+letter2word(other.dmg[0,2])//cant reference the first element of array for some reason
for (i=1;array_height_2d(other.dmg)>i;i++){
textdmg[i] = string(other.dmg[i,1])+" "+letter2word(other.dmg[i,2])
}

}else{ 
//just show dmg
textdmg[0] = other.dmg
textelement = letter2word(other.element)
texthp = other.ehp
}

}


